<fieldset>
{{#settings-row
	(t "settings.player.preset.title")
	(t "settings.player.preset.description")
	icon="fa-play-circle-o"
}}
	{{#drop-down
		value=model.streaming.player
		content=contentStreamingPlayer
		class="player-preset-dropdown"
		as |dropdown|
	}}
		{{#dropdown.selection as |selection|}}
			{{t (concat "settings.player.players." selection.value ".label")}}
		{{/dropdown.selection}}
		{{#dropdown.list as |item|}}
			{{t (concat "settings.player.players." item.value ".label")}}
		{{/dropdown.list}}
	{{/drop-down}}
{{/settings-row}}

{{#settings-row
	(if playerPresetDefault
		(t "settings.player.executable.default.title")
		(t "settings.player.executable.preset.title")
	)
	(if playerPresetDefaultAndPlayerEmpty
		(t "settings.player.executable.default.description")
		(t "settings.player.executable.preset.description")
	)
	icon="fa-tv"
	defaultValue=(if playerPresetDefaultAndPlayerEmpty
		(t "settings.player.executable.default.default-value")
	)
	notes=(unless playerPresetDefaultAndPlayerEmpty
		(t "settings.player.executable.default.notes")
	)
	documentation="--player"
}}
	{{file-select
		value=(mut (get (get model.streaming.players model.streaming.player) "exec"))
		inputClass="form-control"
		placeholder=playerPlaceholder
	}}
{{/settings-row}}

{{#each-in players as |playername player|}}
	{{#each player.params as |param|}}
		{{#settings-row
			(t (concat "settings.player.players." playername ".attributes." param.name ".title"))
			(t (concat "settings.player.players." playername ".attributes." param.name ".description"))
			icon=(if param.icon
				param.icon
				(get
					(hash
						boolean="fa-check"
					)
					param.type
				)
			)
			documentation=param.args
			documentationUrl=""
			isVisible=(is-equal playername model.streaming.player)
		}}
			{{#if (is-equal param.type "boolean")}}
				{{check-box
					(t (concat "settings.player.players." playername ".attributes." param.name ".checkbox"))
					checked=(mut (get (get model.streaming.players model.streaming.player) param.name))
				}}
			{{/if}}
		{{/settings-row}}
	{{/each}}
{{/each-in}}

{{#unless playerPresetDefaultAndPlayerEmpty}}
	{{#settings-row
		(if playerPresetDefault
			(t "settings.player.args.default.title")
			(t "settings.player.args.preset.title")
		)
		(if playerPresetDefault
			(t "settings.player.args.default.description")
			(t "settings.player.args.preset.description")
		)
		icon="fa-terminal"
		documentation="--player-args"
		substitutions=substitutionsPlayer
	}}
		{{input
			type="text"
			classNames="col-xs-12"
			value=(mut (get (get model.streaming.players model.streaming.player) "args"))
			placeholder=(t "settings.player.args.placeholder")
		}}
	{{/settings-row}}
{{/unless}}
</fieldset>